<?php /* Smarty version 2.6.18, created on 2010-03-16 11:25:55
         compiled from dispatchorderhead.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'dispatchorderhead.tpl', 29, false),)), $this); ?>
<style type="text/css"> 
<?php echo '
	#f_div { display:none; position:absolute; z-index:2} 
'; ?>

</style>
<script type="text/javascript">	
	//var calendar1 = new ekimo_calendar("f_show","dispatch_date","Dispatch date", "f_div");
	<?php echo '
										Calendar.setup({
									        inputField     :    "user[dispatchdate]",     // id of the input field
									        ifFormat       :    "%Y-%m-%d" ,    // format of the input field
									        displayArea    :    "fromContainer",
												daFormat       :    "%Y-%m-%d",      // format of the display area
									        button         :    "f_trigger_c1",  // trigger for the calendar (button ID)
									        align          :    "CR",           // alignment (defaults to "Bl")
									        singleClick    :    true,
											//onUpdate	   :    endDateChanged, //event to call after calendar is closed
									        weekNumbers    :    false
									    });
	'; ?>

</script>
<table border="0" width="100%">
			<tr>
				<td>Customer Name</td>
				<td><input type="text" readonly value="<?php echo $this->_tpl_vars['orders']['0']['name']; ?>
"></td>
				<td>Dispatch Date</td>
				<td>
					<!-- label for="f_date">
						<input readonly type="text" name="user[dispatchdate]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
" id="dispatch_date">
						<a href="javascript:void(0);" id="f_show"><img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/></a>
						<div id="f_div"></div>
					</label -->
					<span id="fromContainer" class="formfields" style="width:80px; display:block; float:left; height:15px; text-align:center;"><?php echo ((is_array($_tmp=$this->_tpl_vars['date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span>
					<input style="float:left" type="hidden" name="user[dispatchdate]"  value="<?php echo $this->_tpl_vars['date']; ?>
" id="user[dispatchdate]"> 
					<input style="float:left" type="image" src="/app/default/www/images/calendar.jpg" align="absmiddle" id="f_trigger_c1" style="cursor: pointer; border: 0px ;" title="Date selector"  />
					<input type="hidden" name="dateYui" value="user[dispatchdate]/fromContainer/f_trigger_c1">
				</td>
				<td>Mode of Transport</td>
				<td><select name="user[transport]">
					<option value="">--- Select ---</option>
					<?php $_from = $this->_tpl_vars['shipmethod']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ship']):
?>
						<option value="<?php echo $this->_tpl_vars['ship']['ship_method_id']; ?>
"><?php echo $this->_tpl_vars['ship']['name']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select></td>
			</tr>
			<tr>
				<td>P.O Number</td>
				<td><input type="text" readonly value="<?php echo $this->_tpl_vars['orders']['0']['po_no']; ?>
"></td>
				<td>P.O Date</td>
				<td><input type="text" name="user[podate]" readonly value="<?php echo $this->_tpl_vars['orders']['0']['date_order']; ?>
"></td>
				<td>Airline/Shipping Co</td>
				<td><select name="user[airline]">
					<option value="">--- Select ---</option>
				</select></td>
			</tr>
			<tr>
				<td>Carrier Code</td>
				<td><input type="text" name="user[carriercode]" value=""></td>
				<td>Total Freight</td>
				<td><input type="text" readonly value=""></td>
			</tr>
</table>